import App from './App'


import cnt from './utils/index.js';

import Vant from 'vant';
import 'vant/lib/index.css'
import { Lazyload } from 'vant';

import Vconsole from 'vconsole';

// if (navigator.userAgent.indexOf('iPhone') > -1 || navigator.userAgent.indexOf('IOS') > -1) {
// 	const vConsole = new Vconsole();
// 	Vue.use(vConsole);
// }



// #ifdef VUE3
import { createSSRApp } from 'vue'


export function createApp() {
	
  const app = createSSRApp(App)
  
  app.config.globalProperties.$cnt = cnt;
  app.config.globalProperties.$http = cnt.http;
  
  app.use(Vant)
  app.use(Lazyload);
  
  return {
    app
  }
  
}
// #endif


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
  ...App
})
app.$mount()
// #endif